package com.shanks.home.model;

public class SocketCommand {
	public static final int CLI_CMD_LOGIN         = 0x1001; //client请求登陆
	public static final int CLI_CMD_LOGIN_VER     = 1;      //client请求登陆协议版本


	//开始包标识
	public final static String HEADER_START_FLAG = "ES";
	//客户端请求命令字
	public static final int CLI_CMD_RETURN                  = 0x1002; //CLI请求返回大厅或登录界面
	public static final int CLI_CMD_RETURN_VER              = 1;      //CLI请求返回大厅或登录界面协议版本
	public static final int CLI_CMD_SITDOWN                 = 0x1003; //CLI请求坐下
	public static final int CLI_CMD_SITDOWN_VER             = 1;      //CLI请求坐下协议版本
	public static final int CLI_CMD_STAND                   = 0x1005; //CLI请求站起
	public static final int CLI_CMD_STAND_VER               = 1;      //CLI请求站起协议版本
	public static final int CLI_CMD_REQ_BET                 = 0x1004; //CLI请求下注
	public static final int CLI_CMD_REQ_BET_VER             = 1;      //CLI请求下注协议版本
	public static final int CLI_CMD_REQ_AUTOSIT             = 0x1006; //CLI请求自动买入
	public static final int CLI_CMD_REQ_AUTOSIT_VER         = 1;      //CLI请求自动买入协议版本
	public static final int CLI_CMD_REQ_CANCEL_AUTOSIT      = 0x1007; //CLI请求取消自动买入
	public static final int CLI_CMD_REQ_CANCEL_AUTOSIT_VER  = 1;      //CLI请求取消自动买入协议版本
	public static final int CLI_CMD_REQ_SEND_MSG            = 0x1008; //CLI请求发送消息
	public static final int CLI_CMD_REQ_SEND_MSG_VER        = 1;      //CLI请求发送消息协议版本
	public static final int CLI_CMD_REQ_SEND_EMOTION        = 0x1009; //CLI请求发送表情
	public static final int CLI_CMD_REQ_SEND_EMOTION_VER    = 1;      //CLI请求发送表情协议版本
	public static final int CLI_CMD_REQ_SHOW_HAND_CARD      = 0x100A; //CLI请求亮出手牌
	public static final int CLI_CMD_REQ_SHOW_HAND_CARD_VER  = 1;      //CLI请求亮出手牌协议版本
	public static final int CLI_CMD_REQ_SEND_CHIPS          = 0x100C; //CLI请求赠送筹码
	public static final int CLI_CMD_REQ_SEND_CHIPS_VER      = 1;      //CLI请求赠送筹码协议版本
	public static final int CLI_CMD_SEND_GIFT               = 0x100B; //CLI请求赠送礼物
	public static final int CLI_CMD_SEND_GIFT_VER           = 1;      //CLI请求赠送礼物协议版本
	public static final int CLI_CMD_SEND_HD                 = 0x100D; //CLI请求使用互动道具
	public static final int CLI_CMD_SEND_HD_VER             = 1;      //CLI请求使用互动道具协议版本
	public static final int CLI_CMD_CHANGE_GIFT             = 0x100E; //CLI请求更换礼物
	public static final int CLI_CMD_CHANGE_GIFT_VER         = 1;      //CLI请求更换礼物协议版本
	public static final int CLI_CMD_ADD_FRIEND              = 0x100F; //CLI请求广播加为牌友
	public static final int CLI_CMD_ADD_FRIEND_VER          = 1;      //CLI请求广播加为牌友协议版本
	public static final int CLI_CMD_GO_PROXY              = 0x6001; //代理发送
	public static final int CLI_CMD_GO_PROXY_VER          = 1;

	//SVR返回命令字段
	public static final int SVR_CMD_LOGIN_SUCC              = 0x2001; //SVR返回登陆成功包
	public static final int SVR_CMD_LOGOUT_SUCC				= 0x2029; //SVR返回退出成功
	public static final int SVR_CMD_LOGIN_FAIL              = 0x2002; //SVR返回登陆失败包
	public static final int SVR_CMD_RELOGIN_SUCC            = 0x200F; //SVR返回重连登陆成功包
	public static final int SVR_CMD_SITEDOWN_FAIL           = 0x2004; //SVR返回坐下失败包
	public static final int SVR_CMD_USER_CRASH              = 0x2013; //SVR返回破产包
	public static final int SVR_CMD_SEND_CHIPS_FAIL         = 0x2018; //SVR返回赠送筹码失败包

	//SVR广播命令字段
	public static final int SVR_BCCMD_SEND_GIFT             = 0X2015; //SVR广播赠送礼物
	public static final int SVR_BCCMD_SEND_CHIPS            = 0x2016; //SVR广播赠送筹码
	public static final int SVR_BCCMD_BET_SUCC              = 0x2008; //SVR广播下注成功信息	
	public static final int SVR_BCCMD_BET_TURN_TO           = 0x200C; //SVR广播轮到谁下注
	public static final int SVR_BCCMD_STAND                 = 0x2006; //SVR广播用户站起成功
	public static final int SVR_BCCMD_GAME_START            = 0x2007; //SVR广播游戏开始
	public static final int SVR_BCCMD_SITDOWN               = 0x2005; //SVR广播坐下信息
	public static final int SVR_BCCMD_CARD_FLOP             = 0x2009; //SVR广播翻三张
	public static final int SVR_BCCMD_CARD_TRUN             = 0x200A; //SVR广播翻第四张
	public static final int SVR_BCCMD_CARD_RIVER            = 0x200B; //SVR广播翻第五张
	public static final int SVR_BCCMD_CHIPSPOTS             = 0x200D; //SVR广播奖池信息
	public static final int SVR_BCCMD_GAME_OVER             = 0x200E; //SVR广播游戏结束
	public static final int SVR_BCCMD_CHATMSG               = 0x2011; //SVR广播发送消息
	public static final int SVR_BCCMD_EMOTION               = 0x2012; //SVR广播发送表情
	public static final int SVR_BCCMD_SHOW_HAND_CARD        = 0x2014; //SVR广播亮出手牌
	public static final int SVR_BCCMD_ALLIN                 = 0x3001; //SVR广播All-In结束
	public static final int SVR_BCCMD_SEND_HD               = 0x2017; //SVR广播互动道具
	public static final int SVR_BCCMD_KITOUT                = 0x2019; //SVR广播踢人
	public static final int SVR_BCCMD_ADD_FRIEND            = 0x201A; //SVR广播用户加牌友
	public static final int SVR_BCCMD_SVR_SWITCH            = 0x2100; //SVR广播SVR升级成功
	public static final int SVR_BCCMD_SVR_STOP              = 0x2101; //SVR广播停服通知

	//单桌淘汰赛
	public static final int SVR_BCCMD_TABLE_ID            = 0x7103; //SVR广播tableID

	public static final int SVR_BCCMD_MATCH_START_K         = 0x7101; //SVR广播比赛开始
	public static final int SVR_BCCMD_MATCH_END_K           = 0x7102; //SVR广播比赛结束
	public static final int SVR_BCCMD_BLIND_CHANGE_K        = 0x7106; //SVR广播盲注改变
	public static final int SVR_BCCMD_ALL_RANKING_K         = 0x7107; //SVR返回所有用户排名
	public static final int SVR_BCCMD_MATCH_CLOSE_K         = 0x7108; //SVR广播比赛即将关闭
	public static final int SVR_CMD_USER_RANKING_K          = 0x7104; //SVR返回用户排名
	public static final int SVR_CMD_USER_OUT_K              = 0x7105; //SVR返回用户出局
	public static final int SVR_CMD_MATCH_INFO_K            = 0x7109; //SVR广播比赛信息

	//喇叭server
	public static final int LB_SVR_CMD_SYSTEM               = 0x1002; //喇叭SVR系统广播
	public static final int LB_SVR_CMD_SINGLE               = 0x1003; //喇叭SVR个人广播
	public static final int LB_SVR_CMD_HEARTBEAT            = 0x2001; //喇叭SVR心跳包

	public static final int LB_SVR_TYPE_LEVEL_UP            = 0x1001; //个人升级广播
	public static final int LB_SVR_TYPE_GLORY_FINISH        = 0x1002; //个人完成成就广播
	public static final int LB_SVR_TYPE_TASK_FINISH         = 0x1003; //个人完成任务广播
	public static final int LB_SVR_TYPE_EXP                 = 0x1004; //坐下加经验广播
	public static final int LB_SVR_TYPE_LOTTERY             = 0x1005; //个人中奖广播
	public static final int LB_SVR_TYPE_MESSAGE             = 0x1006; //个人有新消息
	public static final int LB_SVR_TYPE_EDIT_CHIP 	       = 0x1007; //维护金币
	public static final int LB_SVR_TYPE_MATCH_PROMPT        = 0x1008; //比赛通知进场
	public static final int LB_SVR_TYPE_INVITE_PLAY         = 0x1009; //邀请打牌
	public static final int LB_SVR_TYPE_GET_VIP             = 0x100A; //vip点亮
	public static final int LB_SVR_TYPE_EDIT_SCORE          = 0x100B; //维护积分
	public static final int LB_SVR_TYPE_DELAY_PAY           = 0x100C; //延迟发货
	public static final int LB_SVR_TYPE_SUCCESS_PAY         = 0x100D; //支付成功

	public static final int LB_SVR_TYPE_ALL_TIP             = 0x2001; //所有展示位提示
	public static final int LB_SVR_TYPE_HEAD_TIP            = 0x2002; //顶头提示
	public static final int LB_SVR_TYPE_SLOT                = 0x2003; //老虎机大奖
	public static final int LB_SVR_TYPE_ROOM_TIP            = 0x2004; //房间提示
	public static final int LB_SVR_TYPE_SMALL_LABA          = 0x2005; //小喇叭消息
	public static final int LB_SVR_TYPE_BIG_LABA            = 0x2006; //大喇叭消息
	public static final int LB_SVR_TYPE_LOTTO_AWARD         = 0x2007; //大乐透中奖通知
	public static final int LB_SVR_TYPE_LOTTO_POOL          = 0x2008; //大乐透奖池通知

	public static final int LB_SVR_TYPE_DOUBLE_LOGIN        = 0x9001; //重复登录
	public static final int LB_SVR_TYPE_PLAYER_NUM          = 0x3001; //当前玩家人数

	//老虎机server
	public static final int SLOT_SVR_SEND_CMD_LOGIN         = 0x1001; //登陆
	public static final int SLOT_SVR_SEND_CMD_CALCULATOR    = 0x1002; //算牌器请求包
	public static final int SLOT_SVR_SEND_CMD_SLOT          = 0x1003; //老虎机请求包

	public static final int SLOT_SVR_RECV_CMD_CALCULATOR    = 0x2001; //算牌器返回包
	public static final int SLOT_SVR_RECV_CMD_SLOT_SUCC     = 0x2002; //老虎机成功
	public static final int SLOT_SVR_RECV_CMD_SLOT_FAIL     = 0x3001; //老虎机失败

	public static final int ERROR_SIT_IP_EQUAL        = 0x9103; //同一IP不能坐下
	public static final int ERROR_SIT_SELF_IS_SITTING = 0x9104;	//自己已经坐下了
	public static final int ERROR_SIT_BUYING          = 0x9105;	//买入不够
	public static final int ERROR_SIT_SEATID          = 0x9106;	//座位id出错
	public static final int ERROR_SIT_IS_HAVE_USER    = 0x9107;	//座位上已经有人了
	public static final int ERROR_SIT_IS_SEATING      = 0x9108;	//用户已经坐下了
	public static final int ERROR_SIT_MONEY_TOO_BIG   = 0x9109;	//钱过大，不能进入新手场
	public static final int ERROR_SIT_MONEY_TOO_POOR  = 0x9110;	//钱不够，不能进入非新手场

	public static final int LB_SVR_TYPE_MB_SINGLE_MESSAGE = 0x50002;
}